package com.vtech.spring.config;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * TODO
 *
 * @author houzhiwei
 * @date 2018/6/9 19:32
 */
@Configuration
public class DruidConfiguration {
    @Bean
    public DataSource druidDataSource(){
        return DruidDataSourceBuilder.create().build();
    }
}
